package com.tuozixuan.camel.thread;

import org.apache.camel.builder.RouteBuilder;
import org.springframework.stereotype.Component;

@Component
public class ThreadDemoRoute extends RouteBuilder {

	@Override
	public void configure() {
		
//		from("timer:firedOnceTimer?repeatCount=1")
//    	.setBody(constant("Hello, Thread"))
//    	.threads(3, 10).threadName("MyThread").rejectedPolicy(ThreadPoolRejectedPolicy.Abort)
//        .to("log:threadDemoLog");
	}

}
